package com.jingdianjichi.subject.domain.handler.subject;

import com.jingdianjichi.subject.common.enums.SubjectTypeEnum;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.domain.entity.SubjectOptionBO;
import org.springframework.stereotype.Component;

/*
 * 题目种类工厂  接口
 * */
@Component
public interface SubjectTypeHandler {

    /*
     * 实际的题目插入
     * */
    void add(SubjectInfoBO subjectInfoBO);


    /*
     * 枚举身份的识别
     * */
    SubjectTypeEnum getHandlerType();

    /*
    * 查询题目详情
    * */
    SubjectOptionBO query(int subjectId);
}
